It's not much of a game if our sprite just falls! We need to make it flappy!

  • Go to and drag out Space Bar.
  • Test your program by clicking Run and then pressing the space bar.

Events let us give a signal (like pressing the space bar) that causes an action to happen (like the bike jumping).

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("city") sprite = codesters.Sprite("bike") sprite.set_size(0.5) sprite.go_to(-200, 0) stage.set_gravity(10) stage.disable_all_walls()
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)